

import { easeOut } from 'ol/easing'
import TileLayer from "ol/layer/Tile"
import XYZ from "ol/source/XYZ"
import Map from "ol/Map"
import View from "ol/View"
import { transform } from "ol/proj"
 
const olMap = {
    zoom: 5,
    maxZoom: 17,
    minZoom: 5,
    initMap() {
        window.map = new Map({
            target: "olMap",
            view: new View({
              center: [105.02, 34.9],
              zoom: this.zoom,
              projection: "EPSG:4326",
              minZoom: this.minZoom,
              basMap:'osm'
            }),
           
          })
    
          window.olBaseMapLayer = new TileLayer({
            source: new XYZ({
              url: "http://wprd0{1-4}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&style=6&x={x}&y={y}&z={z}",
            }),
          })
          window.map.addLayer(window.olBaseMapLayer);
    },
}
export default olMap;